<!doctype html>
<html>
<head>
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable"  content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no">
    
    
    <!--Simple SEO-->


<meta name="robots" content=all />
<meta name="google" content=all />
<meta name="googlebot" content=all />
<meta name="verify" content=all />
    <!--Title-->

<title>MIAbon&#39;s blog</title>

<link rel="alternate" href="/atom.xml" title="MIAbon&#39;s blog" type="application/atom+xml">


<link rel="icon" href="/favicon.ico">

    
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/pages/article-exp.css">
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/thirdParty/highlight/github.css">

    <!--script-->


<script src="http://cdn1.lncld.net/static/js/3.2.1/av-min.js"></script>
<script>
  var appId = "i7AHmC7NPbPtgS3YxT67dRIc-9Nh9j0Va";
  var appKey = "g6TKbY8O4TsCDMcemoC3STvQ";
  var region = "";
  AV.init({
    appId: appId,
    appKey: appKey,
    region: region
  });
</script>


<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->


    
    
</head>

<body id="normal">
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<style>
    header{ top: 71px; position: absolute!important;}
    #container{padding-top: 151px!important;}
</style>
<div style="position:fixed;z-index:9999;left:0;top:0;width:100%;height:70px;background-color:#e0e0e0;color:#396CA5;border-bottom:1px solid #cecece;text-align:center;line-height:70px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->

<div id="wrap">
    <header >
    <div id="site-meta">
        <a href="/" id="logo">
            <h1 class="title">MIAbon&#39;s blog</h1>
        </a>
        
    </div>
    <ul id="nav">
        
            <li><a href="/"><i class="fa fa-home"></i>首页</a></li>
        
            <li><a href="/atom.xml"><i class="fa fa-rss"></i>RSS</a></li>
        
        <li id="search"><a href="javascript:void(0)"><i class="fa fa-search"></i>搜索</a></li>
    </ul>
</header>

    <div id="container">
        
<ul id="sidebar">
    
    
    
    
<li class="widget widget-normal category">
    <h3 class="fa fa-th widget-title">分类</h3>
    <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/ELK/"><i class="fa" aria-hidden="true">ELK</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Lvs/"><i class="fa" aria-hidden="true">Lvs</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/admin/"><i class="fa" aria-hidden="true">admin</i></a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/ansible/"><i class="fa" aria-hidden="true">ansible</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/aws/"><i class="fa" aria-hidden="true">aws</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/"><i class="fa" aria-hidden="true">docker</i></a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/drone/"><i class="fa" aria-hidden="true">drone</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/"><i class="fa" aria-hidden="true">kernel</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kubernetes/"><i class="fa" aria-hidden="true">kubernetes</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kvm/"><i class="fa" aria-hidden="true">kvm</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mongodb/"><i class="fa" aria-hidden="true">mongodb</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link current" href="/categories/python/"><i class="fa" aria-hidden="true">python</i></a><span class="category-list-count">9</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/share/"><i class="fa" aria-hidden="true">share</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/web/"><i class="fa" aria-hidden="true">web</i></a><span class="category-list-count">12</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/zabbix/"><i class="fa" aria-hidden="true">zabbix</i></a><span class="category-list-count">3</span></li></ul>
</li>


    
    
<li class="widget widget-normal archive">
  <h3 class="fa fa-archive widget-title">归档</h3>
    <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/"><i class="fa" aria-hidden="true">二月 2018</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/"><i class="fa" aria-hidden="true">一月 2018</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/"><i class="fa" aria-hidden="true">十二月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/"><i class="fa" aria-hidden="true">十一月 2017</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/"><i class="fa" aria-hidden="true">十月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/"><i class="fa" aria-hidden="true">九月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/"><i class="fa" aria-hidden="true">八月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/"><i class="fa" aria-hidden="true">五月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/"><i class="fa" aria-hidden="true">四月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/"><i class="fa" aria-hidden="true">三月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/"><i class="fa" aria-hidden="true">一月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/"><i class="fa" aria-hidden="true">十二月 2016</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/"><i class="fa" aria-hidden="true">十一月 2016</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/"><i class="fa" aria-hidden="true">十月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/"><i class="fa" aria-hidden="true">八月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/"><i class="fa" aria-hidden="true">五月 2016</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/"><i class="fa" aria-hidden="true">四月 2016</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/"><i class="fa" aria-hidden="true">五月 2015</i></a><span class="archive-list-count">1</span></li></ul>
</li>


    
    
<li class="widget widget-normal tags">
  <h3 class="fa fa-tags widget-title">标签云</h3>
  <div class="tagcloud-content">
    
      <a href="/tags/drone/" style="font-size: 0.14rem; color: #69c">drone</a> <a href="/tags/linux/" style="font-size: 0.2rem; color: #0a407c">linux</a> <a href="/tags/kernel/" style="font-size: 0.16rem; color: #4f83b8">kernel</a> <a href="/tags/ELK/" style="font-size: 0.14rem; color: #69c">ELK</a> <a href="/tags/ansible/" style="font-size: 0.14rem; color: #69c">ansible</a> <a href="/tags/swarm/" style="font-size: 0.14rem; color: #69c">swarm</a> <a href="/tags/docker/" style="font-size: 0.18rem; color: #215690">docker</a> <a href="/tags/firewalld/" style="font-size: 0.14rem; color: #69c">firewalld</a> <a href="/tags/zabbix/" style="font-size: 0.16rem; color: #4f83b8">zabbix</a> <a href="/tags/aws/" style="font-size: 0.14rem; color: #69c">aws</a> <a href="/tags/web/" style="font-size: 0.16rem; color: #4f83b8">web</a> <a href="/tags/python/" style="font-size: 0.18rem; color: #215690">python</a> <a href="/tags/spider/" style="font-size: 0.17rem; color: #386da4">spider</a>
  </div>
</li>


    
    
<li class="widget widget-normal friends-link">
    <h3 class="fa fa-globe widget-title">友链</h3><br/>

    
        <a href="http://zhengwei666.wang" class="fa" target="_blank">zhengwei</a>

    
        <a href="https://you-deng.github.io" class="fa" target="_blank">dengyou</a>

    
        <a href="http://www.systemd.cn" class="fa" target="_blank">langyaoliang</a>

    
        <a href="http://www.chen-hao.com.cn/" class="fa" target="_blank">chenhao</a>

    
        <a href="http://www.yulongjun.com" class="fa" target="_blank">yulongjun</a>

    

</li>

    
</ul>


        <ul id="main">
    

    
    
    
    
    
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/11/29/CentOS7_Docker修改挂载卷为OverlayFS/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/11/29/CentOS7_Docker修改挂载卷为OverlayFS/">
                <h2 class="article-title">CentOS7 Docker修改挂载卷为OverlayFS</h2>
            </a>
            
            <p class="article-content">
                ovelayfs简介：overlayfs本身是一个叠加文件系统，用于叠合多个文件系统形成一个新的文件系统，使用方式如下：mount -t overlay overlay -olowerdir=/lower, upperdir=/upper, workdir=/work /merged简单的说overlayfs通过Linux内核VFS层的灵活性能够将对文件A的修改变成对B的修改，利用这种灵活性来完成文件系统叠加的效果。比如指令：/lower：是下层的文件系统，通常是只读的。可以放我们的镜像模板的rootfs 如果我们要对其中某个文件做修改，比如文件A，则overlayfs会将该文件拷贝到/upper目录中修改，也就是实现了文件级别的CoW。/merged ：是最终叠加后形成的文件系统，也就是用户实际使用看到叠加效果后的文件系统。
device-mapper简介：device-mappe...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/11/29</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS7 Docker修改挂载卷为OverlayFS"
              data-leadcloud-url="/2016/11/29/CentOS7_Docker修改挂载卷为OverlayFS/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/11/29/CentOS7_Docker修改挂载卷为OverlayFS/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/11/29/CentOS7升级内核/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/11/29/CentOS7升级内核/">
                <h2 class="article-title">CentOS7升级内核</h2>
            </a>
            
            <p class="article-content">
                升级内核的原因是因为想要测试 docker overlay 网络模式docker overlay 网络模式，要求内核必须是3.16或以上。
升级内核需要使用 elrepo 的yum 源首先我们导入 elrepo 的key1rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
安装 elrepo 源1rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
在yum的ELRepo源中，ml 为最新版本的内核,lt为长期支持版内核1yum --enablerepo=elrepo-kernel install  kernel-lt-devel kernel-lt -y
配置grub212mkdir /boot/grubgrub2-mkco...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>kernel</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/11/29</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS7升级内核"
              data-leadcloud-url="/2016/11/29/CentOS7升级内核/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/11/29/CentOS7升级内核/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/10/31/mongodb集群安装/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/10/31/mongodb集群安装/">
                <h2 class="article-title">mongodb集群安装</h2>
            </a>
            
            <p class="article-content">
                mongodb安装下载mongodb源码包下载地址：http://www.mongodb.org/downloads解压缩并将解压后目录mv至安装位置12tar -xvf mongodb-linux-x86_64-3.0.6.tgzmv mongodb-linux-x86_64-3.0.6 /usr/local/mongodb
修改PATH环境变量指明mongodb的可执行文件123456 cd  /etc/profile.d/cat mongodb.sh export PATH=$PATH:/usr/local/mongodb/binsource mongodb.shecho $PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mongodb/bin
本文档在两...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>mongodb</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/10/31</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="mongodb集群安装"
              data-leadcloud-url="/2016/10/31/mongodb集群安装/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/10/31/mongodb集群安装/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/10/26/在EC2_Linux上挂载S3存储桶/">
        <div class="article-img img-ajax" data-src= http://backup-miabon.oss-cn-hongkong.aliyuncs.com/img/453858869f4c344474efa68cc31dc0d8.png>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/10/26/在EC2_Linux上挂载S3存储桶/">
                <h2 class="article-title">在EC2 Linux上挂载S3存储桶</h2>
            </a>
            
            <p class="article-content">
                安装必要的软件包1sudo yum install -y automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
下载并编译安装S3fs123456git clone https://github.com/s3fs-fuse/s3fs-fuse.gitcd s3fs-fuse./autogen.sh./configuremakesudo make install
检查S3fs是否安装成功12s3fswhich s3fs
将IAM创建的用户密钥ID，访问密钥写入文件1echo AKIAJJIMDGKxxxx:xxxxxxxxxxxxx &gt; /home/ec2-user/.passwd-s3fs
设置密钥权限1chmod 600 /home/ec2-user/.passw...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>aws</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            aws
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/10/26</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="在EC2 Linux上挂载S3存储桶"
              data-leadcloud-url="/2016/10/26/在EC2_Linux上挂载S3存储桶/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/10/26/在EC2_Linux上挂载S3存储桶/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/08/11/zabbix2.2/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/08/11/zabbix2.2/">
                <h2 class="article-title">zabbix2.2</h2>
            </a>
            
            <p class="article-content">
                安装nginx创建nginx用户1useradd -r -s /sbin/nologin nginx
安装依赖包1yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel ncurses-devel
创建必要的目录12345mkdir -pv /var/cache/nginx/client_tempchown nginx:nginx /var/cache/nginx/client_tempmkdir -pv /data/mkdir: 已创建目录 "/data/"chown nginx.nginx /data/
编译安装12345678910111213141516171819202122232425262728293031323334tar -xf nginx-1.8.1.tar.gzcd nginx-1...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>zabbix</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/08/11</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="zabbix2.2"
              data-leadcloud-url="/2016/08/11/zabbix2.2/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/08/11/zabbix2.2/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/08/11/Samba/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/08/11/Samba/">
                <h2 class="article-title">Samba</h2>
            </a>
            
            <p class="article-content">
                Samba简介在最初，由于Windows和Linux所支持的协议不同，导致Windows和Linux系统之间无法实现资源的共享，例如双方之间实现文件的传输。为了实现资源的共享，此时Samba软件就应用而生。Samba（Server Messages Block）即服务器消息块，它是通过SMB协议实现UNIX与Linux系统之间、Unix与Windows系统之间资源共享的一款开源通信软件，并且可以通过Samba与OpenLDAP软件实现Windows AD功能。Samba服务端主要包含两个核心进程，一个是smb，另一个是nmb。smb进程主要负责客户端和服务端连接的建立、用户验证以及提供用户访问Samba服务端的资源，所以smb进程是Samba服务器中一大核心。nmb进程主要负责服务端与客户端之间的解析，例如工作组名称与IP地址映射。如果nmb没有启动，也不影响用户访问共享资源，只不过...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>share</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/08/11</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="Samba"
              data-leadcloud-url="/2016/08/11/Samba/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/08/11/Samba/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/05/16/memcached简易使用/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/05/16/memcached简易使用/">
                <h2 class="article-title">memcached简易使用</h2>
            </a>
            
            <p class="article-content">
                memcached是一款自由&amp;开放、高性能、通用的分布式内存对象缓存系统，用以加速动态web应用程序，减轻数据库负载。memcached是一个将database calls、API calls或page rendering以键值对的形式存储于内存小区块的程序。1yum -y install memcached
配置文件：/etc/sysconfig/memcached #用以定义工作端口、用户、最大连接数、缓存大小等。
监听端口：TCP/UDP 1121112systemctl enable memcachedsystemctl start memcached
CentOS7上安装php-fpm以及php-pecl-memcached1yum -y install httpd php-fpm php-pecl-memcached
新建httpd配置文件，将php页面传递给ph...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/05/16</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="memcached简易使用"
              data-leadcloud-url="/2016/05/16/memcached简易使用/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/05/16/memcached简易使用/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/05/09/CentOS6搭建iscsi存储/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/05/09/CentOS6搭建iscsi存储/">
                <h2 class="article-title">CentOS6搭建iscsi存储</h2>
            </a>
            
            <p class="article-content">
                服务器端软件安装
1yum -y install scsi-target-utils
查看包信息1234567891011121314rpm -qi scsi-target-utilsName        : scsi-target-utils            Relocations: (not relocatable)Version     : 1.0.24                            Vendor: CentOSRelease     : 16.el6                        Build Date: Wed 15 Oct 2014 02:08:59 PM CSTInstall Date: Mon 09 May 2016 07:35:46 PM CST      Build Host: c6b9.bsys.dev.centos...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>Lvs</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/05/09</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS6搭建iscsi存储"
              data-leadcloud-url="/2016/05/09/CentOS6搭建iscsi存储/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/05/09/CentOS6搭建iscsi存储/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/05/06/shadowsocks/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/05/06/shadowsocks/">
                <h2 class="article-title">科学上网shadowsocks</h2>
            </a>
            
            <p class="article-content">
                #1.安装shadowsocks clients
##1.1CentOS7添加Fedoar的epel源
12345678910111213141516cd /etc/yum.repos.d/vim CentOS-Base.repo添加以下[librehat-shadowsocks]name=Copr repo for shadowsocks owned by librehatbaseurl=https://copr-be.cloud.fedoraproject.org/results/librehat/shadowsocks/epel-7-$basearch/skip_if_unavailable=Truegpgcheck=1gpgkey=https://copr-be.cloud.fedoraproject.org/results/librehat/shadowsocks/pubk...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/05/06</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="科学上网shadowsocks"
              data-leadcloud-url="/2016/05/06/shadowsocks/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/05/06/shadowsocks/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/05/01/CentOS7安装WordPress/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/05/01/CentOS7安装WordPress/">
                <h2 class="article-title">CentOS7安装WordPress</h2>
            </a>
            
            <p class="article-content">
                WordPress需要使用数据库进行管理，所以要先建立数据库
SSH连接好以后，开始输入以下命令：
1mysql -u root -p        #指定root用户登录
然后输入之前设定好的root密码登录mariadb后输入以下命令：1CREATE DATABASE wpdb
建立一个名为wpdb的数据库12345678GRANT ALL ON wpdb.* TO wpuser@'%.%.%.%' IDENTIFIED BY 'wppass';wpdb        #数据库名称wpuser        #对应数据库用户名wppass        #对应数据库密码%.%.%.%        #远程连接限制IP
123456789101112wget https://wordpress.org/latest.tar.gz        #这个默认是英文版的下载地址&lt;/...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/05/01</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS7安装WordPress"
              data-leadcloud-url="/2016/05/01/CentOS7安装WordPress/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/05/01/CentOS7安装WordPress/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    

</ul>

<div id="page-pagination">
    <div id="page-nav">
        <a class="extend prev" rel="prev" href="/page/3/">&laquo; Prev</a><a class="page-number" href="/">1</a><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="page-number current">4</span><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/5/">Next &raquo;</a>
    </div>
</div>

    </div>
    <footer id="footer">
    
    <div class="social">
        
        <a href="https://www.example1.com" class="fa fa-free-code-camp" target="_blank" title="freecodecamp"></a>
        
        <a href="https://github.com/werewolf2101" class="fa fa-github" target="_blank" title="Follow me~"></a>
        
        <a href="mailto:werewolf2101@gmail.com" class="fa fa-email" target="_blank" title="Email"></a>
        
    </div>
    
    <div>
        
        <a href="/" class="copyright-links">MIAbon</a>&copy;2015 - 2018.All Rights
        Reserved.
    </div>
    <p>Powered by <a href="https://hexo.io" class="copyright-links" target="_blank">Hexo</a> | Theme by <a
                href="https://github.com/GeekaholicLin" class="copyright-links" target="_blank">GeekaholicLin</a>
    </p>
    
    
    <p>
        <span id="busuanzi_container_site_uv" class="fa fa-bar-chart">
        欢迎第<span id="busuanzi_value_site_uv"><i class="fa fa-spinner fa-spin"></i></span>位小伙伴~
        </span>
    </p>
    
</footer>

</div>
    <ul id="tools">
    <li class="totop-btn fa fa-angle-up"></li>
    <li class="exchange-btn fa fa-exchange"></li>
  
    

    
</ul>
<p id="process"></p>
<div id="search-overlay">
    <div class="search-area-wrap">
        <div id="search-area">
            <div class="input-wrap focus">
                <i class="fa fa-search" aria-hidden="true"></i>
                <input id="search-input" autofocus autocomplete="off" type="text"
                       placeholder="search this website..."/>
            </div>
            <ul id="search-result">
                <li class="load-first"><i class="fa fa-spinner fa-pulse"></i></li>
            </ul>
        </div>
    </div>
</div>


    <script src="/js/highsong.js"></script>



<script src="/js/search.js"></script>
<script type="text/javascript">
    //theme config datas
    var copyrightObj = {};
    copyrightObj.enable = 'true';
    copyrightObj.triggerCopyLength = '200';
    copyrightObj.appendText = '商业转载请联系作者获得授权,非商业转载请注明出处 © gasslinks.com';
    var leancloudObj = {};
    leancloudObj.enable = 'true';
    leancloudObj.className = 'blog';
    leancloudObj.limits = '5';
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfebe5842f5d4196471b84802392a4b2";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
    var search = {};
    var search_path = "search.xml";
    if (!search_path) {
        search_path = "search.xml";
    }
    search.path = "/" + search_path;
    search.func =  _ajax.init();
</script>
<script src="/js/app.js"></script>


</body>
</html>